package com.cty.service.impl;

import com.cty.mapper.EmployeeMapper;
import com.cty.pojo.Employee;
import com.cty.service.EmployeeService;
import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    EmployeeMapper employeeMapper;

    @Override
    public List<Employee> queryAll() {
        List<Employee> list = employeeMapper.queryAll();
        return list;
    }
}
